<!-- 
@section('title')
    问律师 @parent
@show
@section('content')
    {{ HTML::style('css/questionlawyer.css')}} 
    {{ HTML::script('js/question/questionList.js') }}
    <div class="askLawyerSearch">
        <div class="container">
            <div class="searchItme">
                <form  class="input-wrapper" id="inquery_list_form" method="get" action="{{ route('question.list_questions') }}">
                    <div class="keyword-wrapper">
                        <input class="itxt search" type="text" id="keyword" autocomplete="off" maxlength="64" placeholder="请输入您要查找的咨询" value=""/>
                    </div>
                    <input class="searchIcon" type="button" id="subSearch" value="搜索"/>
                </form>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="askArea clear">
            <ul id="filterBox" class="area-wrap">                                                                                                                 </li>
                <div class="details" id="filterCollapse">
                    <li class="area">
                        <span class="title">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</span>
                        <a href="javascript:void(0)" data-id="" class="defcrrt">不限</a>
                        <div class="workscope">
                            @foreach ($cities as $key => $city)
                                <a href="javascript:void(0);" data-id="{{ $key }}">{{ $city }}</a>
                            @endforeach
                        </div>
                    </li>
                    <li class="issue">
                        <span class="title">发布时间：</span>
                        <a href="javascript:void(0);" data-id="" class="defcrrt">不限</a>
                        <div class="workscope">
                            @foreach($publishedDates as $key => $date)
                                <a href="javascript:void(0);" data-id="{{ $key }}">{{ $date }}</a>
                            @endforeach
                        </div>
                    </li>
                    <li  class="trade">
                        <span class="title">行业领域：</span>
                        <a href="javascript:void(0);" data-id="" class="defcrrt">不限</a>
                        <div class="workscope">
                            @foreach($workscopes as $key => $item)
                                <a href="javascript:void(0);" data-id="{{ $item['key'] }}">{{ $item['value'] }}</a>
                            @endforeach
                        </div>
                        <span class="btn-more" href="javascript:void(0)">更多&ensp;<i></i></span>
                    </li>
                </div>
            </ul>
        </div>
        <div class="sortBy">
            <ul id="filterBox" class="area-wrap">                                                                                                                 </li>
                <div class="details" id="filterCollapse">
                    <div class="has-more">
                        <li class="order">
                        <span class="title">排序方式：</span>
                        @foreach ($listOrders as $key => $order)
                            <a href="javascript:void(0);" data-id="{{ $key }}">{{ $order }}</a>
                        @endforeach
                        </li>
                    </div>
                </div>
            </ul>
        </div>
        <div id="page" class="issueClass">
        </div>
        <div class="item_pager">
            <a href="javascript:void(0);" class="loadMore">加载更多</a>
        </div>
    </div>
</div>
<script type="text/javascript">
    var listUrl="{{ route('question.list') }}"
    var jumpUrl = "{{ Config::get('app.url') }}";
// enter按键搜索
  $(function(){
    var j = 0;
    document.onkeydown = function(e) {
        var keyword = $("#keyword").val();
        var params ='q='+keyword;
        var e = event || window.event || arguments.callee.caller.arguments[0],
         keycode = e.which || e.keyCode;
         if (keycode==13) {
            if (keyword != null && keyword.length != 0) {
            j++;
                if(j==1){
                  window.location.href="{{ Config::get('app.url') }}/question/list?"+params; 
                }
            } 
            return false; 
         }else{
            return true;
         }
         stopDefault(e);
    }
  }); 
</script>
@show -->